package main

import (
	"fmt"

	"github.com/urfave/cli/v2"
)

func CliCmd() *cli.Command {
	return &cli.Command{
		Name:    "cli",
		Aliases: []string{"c"},
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:  "test",
				Usage: "test string",
				Value: "world",
			},
		},
		Action: func(c *cli.Context) error {
			fmt.Printf("hello %s", c.String("test"))
			return nil
		},
	}
}
